package domain

import (
	"gitee.com/cjsn/topsdk/util"
)

type TmallServicecenterWorkcardQuerybysellerWorkcard struct {
	/*
	   签到时间     */
	GmtSignIn *util.LocalTime `json:"gmt_sign_in,omitempty" `

	/*
	   已使用的次数     */
	UsedServiceCount *int64 `json:"used_service_count,omitempty" `

	/*
	   服务订单数据     */
	ServiceTradeOrder *TmallServicecenterWorkcardQuerybysellerServiceTradeOrder `json:"service_trade_order,omitempty" `

	/*
	   工单服务总次数     */
	ServiceCount *int64 `json:"service_count,omitempty" `

	/*
	   工单状态编码     */
	StatusCode *string `json:"status_code,omitempty" `

	/*
	   工单id     */
	Id *int64 `json:"id,omitempty" `

	/*
	   剩余次数     */
	LeftServiceCount *int64 `json:"left_service_count,omitempty" `

	/*
	   主订单号     */
	ParentBizOrderId *int64 `json:"parent_biz_order_id,omitempty" `

	/*
	   服务提供者     */
	ServiceProvider *TmallServicecenterWorkcardQuerybysellerServiceProvider `json:"service_provider,omitempty" `

	/*
	   核销时间     */
	GmtIdentify *util.LocalTime `json:"gmt_identify,omitempty" `

	/*
	   预约时间开始     */
	GmtReserveStart *util.LocalTime `json:"gmt_reserve_start,omitempty" `

	/*
	   实物订单信息     */
	MasterTradeOrder *TmallServicecenterWorkcardQuerybysellerMasterTradeOrder `json:"master_trade_order,omitempty" `

	/*
	   服务定义     */
	ServiceDefinition *TmallServicecenterWorkcardQuerybysellerServiceDefinition `json:"service_definition,omitempty" `

	/*
	   买家期望服务时间     */
	BuyerExpectDate *util.LocalTime `json:"buyer_expect_date,omitempty" `

	/*
	   核销/工单完结请求中直接带回该字段     */
	Sequence *int64 `json:"sequence,omitempty" `

	/*
	   服务单id     */
	SpServiceOrderId *int64 `json:"sp_service_order_id,omitempty" `

	/*
	   分配工人时间     */
	GmtAssignWorker *util.LocalTime `json:"gmt_assign_worker,omitempty" `

	/*
	   预约结束时间     */
	GmtReserveEnd *util.LocalTime `json:"gmt_reserve_end,omitempty" `

	/*
	   工单创建时间     */
	GmtCreate *util.LocalTime `json:"gmt_create,omitempty" `

	/*
	   额外属性，包含：{   servPrice: 服务采购价,   newService: 切服务化之后的服务单标识,   lbxNo: 淘宝的物流订单号,   discountFee: 优惠金额,   reserveSource: 预约来源,   serviceDate: 预约时间,   gmtExpire: 过期时间,   bizCode: 业务身份,   型号: IKEA00000237S,   serviceAuctionTitle: 服务商品标题,   reserveTimeEnd: 预约时间段的结束时间,   reassign: 是否是改派工单,   masterSkuId: 实物sku id,   serviceSkuDesc: 服务sku描述,   operator: 工单预约操作者 1表示消费者主动预约，2表示服务回传预约时间,   settlement: 是否进行线上结算,   mainServiceOrder: 双主服务主订单key,   signedTime: 签收时间,   masterAuctionTitle: 实物商品标题,   msfRervDate: 瞄师傅预约日期,   类目: 书架,   品牌: IKEA/宜家,   auctionImageUrl: 实物图片链接,   masterSkuDesc: 实物sku描述,   af: 交易订单实付金额,   auto_dispatch_order: 是否智能派单,   usedServiceCount: "工单总使用次数",   reserveTimeStart: 预约时间段的开始时间,   masterParentOrderId: 实物订单主订单,   address_city: 买家城市,   reserveRemark: 预约备注,   父类目: 架类,   arrivalTimeNum: 物品签收时间,   outerIdSKU: 商家编码 }     */
	AttributeMap *string `json:"attribute_map,omitempty" `
}

func (s *TmallServicecenterWorkcardQuerybysellerWorkcard) SetGmtSignIn(v util.LocalTime) *TmallServicecenterWorkcardQuerybysellerWorkcard {
	s.GmtSignIn = &v
	return s
}
func (s *TmallServicecenterWorkcardQuerybysellerWorkcard) SetUsedServiceCount(v int64) *TmallServicecenterWorkcardQuerybysellerWorkcard {
	s.UsedServiceCount = &v
	return s
}
func (s *TmallServicecenterWorkcardQuerybysellerWorkcard) SetServiceTradeOrder(v TmallServicecenterWorkcardQuerybysellerServiceTradeOrder) *TmallServicecenterWorkcardQuerybysellerWorkcard {
	s.ServiceTradeOrder = &v
	return s
}
func (s *TmallServicecenterWorkcardQuerybysellerWorkcard) SetServiceCount(v int64) *TmallServicecenterWorkcardQuerybysellerWorkcard {
	s.ServiceCount = &v
	return s
}
func (s *TmallServicecenterWorkcardQuerybysellerWorkcard) SetStatusCode(v string) *TmallServicecenterWorkcardQuerybysellerWorkcard {
	s.StatusCode = &v
	return s
}
func (s *TmallServicecenterWorkcardQuerybysellerWorkcard) SetId(v int64) *TmallServicecenterWorkcardQuerybysellerWorkcard {
	s.Id = &v
	return s
}
func (s *TmallServicecenterWorkcardQuerybysellerWorkcard) SetLeftServiceCount(v int64) *TmallServicecenterWorkcardQuerybysellerWorkcard {
	s.LeftServiceCount = &v
	return s
}
func (s *TmallServicecenterWorkcardQuerybysellerWorkcard) SetParentBizOrderId(v int64) *TmallServicecenterWorkcardQuerybysellerWorkcard {
	s.ParentBizOrderId = &v
	return s
}
func (s *TmallServicecenterWorkcardQuerybysellerWorkcard) SetServiceProvider(v TmallServicecenterWorkcardQuerybysellerServiceProvider) *TmallServicecenterWorkcardQuerybysellerWorkcard {
	s.ServiceProvider = &v
	return s
}
func (s *TmallServicecenterWorkcardQuerybysellerWorkcard) SetGmtIdentify(v util.LocalTime) *TmallServicecenterWorkcardQuerybysellerWorkcard {
	s.GmtIdentify = &v
	return s
}
func (s *TmallServicecenterWorkcardQuerybysellerWorkcard) SetGmtReserveStart(v util.LocalTime) *TmallServicecenterWorkcardQuerybysellerWorkcard {
	s.GmtReserveStart = &v
	return s
}
func (s *TmallServicecenterWorkcardQuerybysellerWorkcard) SetMasterTradeOrder(v TmallServicecenterWorkcardQuerybysellerMasterTradeOrder) *TmallServicecenterWorkcardQuerybysellerWorkcard {
	s.MasterTradeOrder = &v
	return s
}
func (s *TmallServicecenterWorkcardQuerybysellerWorkcard) SetServiceDefinition(v TmallServicecenterWorkcardQuerybysellerServiceDefinition) *TmallServicecenterWorkcardQuerybysellerWorkcard {
	s.ServiceDefinition = &v
	return s
}
func (s *TmallServicecenterWorkcardQuerybysellerWorkcard) SetBuyerExpectDate(v util.LocalTime) *TmallServicecenterWorkcardQuerybysellerWorkcard {
	s.BuyerExpectDate = &v
	return s
}
func (s *TmallServicecenterWorkcardQuerybysellerWorkcard) SetSequence(v int64) *TmallServicecenterWorkcardQuerybysellerWorkcard {
	s.Sequence = &v
	return s
}
func (s *TmallServicecenterWorkcardQuerybysellerWorkcard) SetSpServiceOrderId(v int64) *TmallServicecenterWorkcardQuerybysellerWorkcard {
	s.SpServiceOrderId = &v
	return s
}
func (s *TmallServicecenterWorkcardQuerybysellerWorkcard) SetGmtAssignWorker(v util.LocalTime) *TmallServicecenterWorkcardQuerybysellerWorkcard {
	s.GmtAssignWorker = &v
	return s
}
func (s *TmallServicecenterWorkcardQuerybysellerWorkcard) SetGmtReserveEnd(v util.LocalTime) *TmallServicecenterWorkcardQuerybysellerWorkcard {
	s.GmtReserveEnd = &v
	return s
}
func (s *TmallServicecenterWorkcardQuerybysellerWorkcard) SetGmtCreate(v util.LocalTime) *TmallServicecenterWorkcardQuerybysellerWorkcard {
	s.GmtCreate = &v
	return s
}
func (s *TmallServicecenterWorkcardQuerybysellerWorkcard) SetAttributeMap(v string) *TmallServicecenterWorkcardQuerybysellerWorkcard {
	s.AttributeMap = &v
	return s
}
